<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 * author Hieu Ho
 */
class Thongbao extends CI_Controller{
     public function __construct() {
        parent::__construct();
        $this->load->model('thongbao_model');
    }
    public function thongbaogiasu() {
        $this->load->model('thongbao_model');
        $session_data = $this->session->userdata('logged_in');
        $data['id'] = $session_data['id'];
        $data['data']=$this->thongbao_model->load_thongbaogiasu($id);
        $this->load->view('user/common/header_view', $data);
        $this->load->view('user/common/left_sidebar_view', $data);
        $this->load->view('user/common/head_content_view', $data);
        $this->load->view('user/thanhvien/thongbaogiasu_view.php', $data);
        $this->load->view('user/common/right_sidebar_view', $data);
        $this->load->view('user/common/footer_view', $data);
    }
    public function thongbaolop() {
        $this->load->model('thongbao_model');
        $session_data = $this->session->userdata('logged_in');
        $data['id'] = $session_data['id'];
        $data['data']=$this->thongbao_model->load_thongbaolop($id);
        $this->load->view('user/common/header_view', $data);
        $this->load->view('user/common/left_sidebar_view', $data);
        $this->load->view('user/common/head_content_view', $data);
        $this->load->view('user/thanhvien/thongbaolop_view.php', $data);
        $this->load->view('user/common/right_sidebar_view', $data);
        $this->load->view('user/common/footer_view', $data);
    }
}
?>
